//
//  main.m
//  block
//
//  Created by Mac on 16/3/19.
//  Copyright © 2016年 Mac. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BlockWithAutoVar.h"
#import "BlockWithInstanceVar.h"
#import "BlockWithGlobalVar.h"
int main(int argc, const char * argv[]) {
    @autoreleasepool {
        //BlockWithAutoVar *obj = [BlockWithAutoVar new];
        //[obj createBlock];
        
        //BlockWithInstanceVar *obj2 = [BlockWithInstanceVar new];
        //[obj2 createBlock];
        //NSLog(@"in main, personInstance'name = %@",obj2.personInstance.name);
        
        BlockWithGlobalVar *obj3 = [BlockWithGlobalVar new];
        [obj3 createBlock];
    }
    return 0;
}
